package svgedit.japangui.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

import svgedit.japangui.JapanFrame;


/** Selects all top-level elements in the document.
 */
@SuppressWarnings("serial")
public class SelectAllAction extends AbstractAction {

    private JapanFrame japanFrame;

    /** Create this action for the given frame */
    public SelectAllAction(JapanFrame japanFrame) {
        super("\u3059\u3079\u3066\u9078\u629E");
        this.japanFrame = japanFrame;
    }

    public void actionPerformed(ActionEvent ae) {
    	japanFrame.getView().setSelectedElements(japanFrame.getDocument().getRootGroup().getChildren());
    }


}
